<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link href="https://cdn.bootcdn.net/ajax/libs/animate.css/4.1.1/animate.compat.css" rel="stylesheet">
</head>
<style>
  /* enter */
  .v-enter{
    opacity: 0;
  }

  /* .v-enter-active {
    animation: 2s bounce-in;
    transform-origin: left;
  } */

  .v-enter-to {

  }
/* 
  @keyframes bounce-in {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(2);
    }
    100% {
      transform: scale(1);
    }
  } */
</style>
<body>
  <div id="app">
    <transition 
               
                enter-active-class="animated slideInUp"
                leave-active-class="animated hinge">
      <div v-show="toggle">{{mes}}</div>
    </transition>

    <button @click='togo'>切换</button>
  </div>

  <script src="./js/vue.js"></script>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        mes: "vue",
        toggle: true
      },
      methods: {
        togo() {
          this.toggle = !this.toggle;
        }
      }
    })

  </script>
</body>
</html>